﻿@{
    Layout = null;
}

<!DOCTYPE html>
<style>
    #divAccord span {
        cursor: pointer;
    }

    #divAccord p {
        padding-left: 5px;
    }
</style>
<html>
<head>
    <title>各种问题扫描</title>
    <meta charset="UTF-8">
    <title>Full Layout - jQuery EasyUI Demo</title>
    <link rel="stylesheet" type="text/css" href="~/Scripts/jquery-easyui-1.7.0/themes/bootstrap/easyui.css">
    <link rel="stylesheet" type="text/css" href="~/Scripts/jquery-easyui-1.7.0/themes/icon.css">
    <script type="text/javascript" src="~/Scripts/jquery-easyui-1.7.0/jquery.min.js"></script>
    <script type="text/javascript" src="~/Scripts/jquery-easyui-1.7.0/jquery.easyui.min.js"></script>
</head>
<body class="easyui-layout">
    <div data-options="region:'west',split:false,title:''" style="width: 250px; padding: 0; ">
        <div id="divAccord" class="easyui-accordion" style="width: 100%; ">
            <div title="迭代过程" data-options="" style="overflow: auto; ">
                <p>
                    <span href="@Url.Action("InterfaceMethod","GetAppApi")" menua="true">检查Interface接口</span>
                </p>
                <p>
                    <span href="@Url.Action("Index","GetAppApi")" menua="true">检查App接口（包括内部、外部）</span>
                </p>
                <p>
                    <span href="@Url.Action("MethodLog","GetAppApi")" menua="true">接口对比</span> 
                </p>
                <p>
                    <span href="@Url.Action("InterfaceRemark","GetAppApi")" menua="true">接口参数说明</span> 
                    
                </p>
                <p>
                    <span href="@Url.Action("YunCeIndex","GetAppApi")" menua="true">云测接口覆盖</span>
                </p>
            </div>

            <div title="发版前检查" data-options="" style="overflow: auto;">

                <p>
                    <span href="@Url.Content("ViewCheckNoUserXMLCommand")" menua="true">检查无用的XMLCommand</span>
                </p>
                <p>
                    <span href="@Url.Action("Index","CheckLange")" menua="true">多语言未翻译</span>
                </p>
                <p>
                    <span href="@Url.Action("Index","Fk")" menua="true">分库检查</span>
                </p>
                <p>
                    <span href="@Url.Action("Index","Dsq")" menua="true">多时区未处理</span>
                </p>
                <p>
                    <span href="@Url.Action("Index","GetRepeatMethod")" menua="true">方法名重复</span>
                </p>
                <p>
                    <span href="@Url.Action("NoVirtualMethod","GetRepeatMethod")" menua="true">不为虚方法</span>
                </p>
                <p>
                    <span href="@Url.Action("Index","CheckLan")" menua="true">多语言重复检查</span>
                </p>
                <p>
                    <span href="@Url.Action("Index","CheckOhterMetadata")" menua="true">是否包含其他系统元数据</span>
                </p>

                <p>
                    <span href="@Url.Action("GetMate","GetModelMate")" menua="true">检查插件包元数据</span>
                </p>

            </div>

            <div title="其他检查" data-options="" style="overflow: auto;">

                <p>
                    <span href="@Url.Content("ViewKf")" menua="true">页面开放</span>
                </p>
                <p>
                    <span href="@Url.Content("ViewQdAppService")" menua="true">Appservice调用检查</span>
                </p>


                <p>
                    <span href="@Url.Content("ViewCheckAppMethodIsUse")" menua="true">检查Appservice是否调用</span>
                </p>
                <p>
                    <span href="@Url.Content("ViewCheckNoUserFile")" menua="true">检查js、>检查js、aspx是否还有用</span>
                </p>
                <p>
                    <span href="@Url.Content("ViewGetFormNqWg")" menua="true">获取表单上的内嵌网格设置了查询权限</span>
                </p>
                <p>
                    <span href="@Url.Content("ViewQdAppService")" menua="true">检查 appservice是否夸模块调用</span>
                </p>
                <p>
                    <span href="@Url.Action("ComperResult", "MetadataComper")" menua="true">检查 实体与元数据中不一致问题</span>
                </p>
                <p>
                    <span href="@Url.Action("CheckFieldNull","Fk")" menua="true">字段为空检查（BUGUID）</span>
                </p>

            </div>
        </div>
    </div>
    <div data-options="region:'center',title:''">
        <div id="easyuiTabs" class="easyui-tabs" data-options="tools:'#tab-tools'" style="width: 100%; height: 100%;">
        </div>
    </div>
</body>

</html>
<script>
    var $easyuiTabs = $("#easyuiTabs");
    function addPanel(title, src) {
        $easyuiTabs.tabs('add', {
            title: title,
            content: '<iframe src="' + src + '"  width="100%" height="100%" ></iframe>',
            pill: true,
            closable: true,
            tools: [{
                iconCls: 'icon-mini-refresh',
                handler: function () {
                    var tab = $easyuiTabs.tabs('getSelected');
                    $easyuiTabs.tabs('update', {
                        tab: tab,
                        options: {
                            //title: 'new title',
                            //iconCls: 'icon-save'
                        }
                    });
                }
            }]
        });
    }

    $(document).ready(function () {
        $("#divAccord").find("span[menua='true']").click(function () {
            var $this = $(this);
            var text = $this.html();
            var e = $easyuiTabs.tabs('exists', text);
            if (e == true) {
                $easyuiTabs.tabs('select', text);
                return;
            }
            var href = $this.attr("href");
            addPanel(text, href);
        });
    });
</script>